import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import home from '@/pages/home'
import head from '@/pages/head'
import test from '@/pages/test'
import cusadd from '@/pages/cusadd'
import errorPage from '@/pages/404'
import testN from '@/pages/test1'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: home,
      children: [
        {
          path: '/cusadd',
          name: 'cusadd',
          component: cusadd
        },
        {
          path: '/testN',
          name: 'testN',
          component: testN
        }
      ]
    },
    {
      path: '/head',
      name: 'Head',
      component: head
    },
    {
      path: '/test',
      name: 'Test',
      component: test
    },
    {
      path: '/*',
      component: errorPage
    }
  ]
})
